package com.qianyu.project.service.smj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.Perform;

import java.util.List;
import java.util.Map;

public interface smjPerformService {
    /**
     * 创建完工结算
     * @param apply_date
     * @param p_id
     * @param ctr_id
     * @param company_id
     * @param perform_name
     * @param contract_amount
     * @param penalty
     * @param withhold
     * @param agree_amount
     * @param agree_upper
     * @param handler_id
     * @param settle_comment
     * @param attach_ids
     * @return
     */
    String Addperform(String apply_date, String p_id, String ctr_id, String company_id, String perform_name, String contract_amount, String penalty, String withhold,  String agree_amount, String agree_upper, String handler_id, String settle_comment, String attach_ids);

    /**
     * 添加工程量清单
     * @param perform_id
     * @param work_content
     * @param work_count
     * @param unit
     * @param unit_price
     * @param snumber
     * @param hnumber
     * @param comment
     * @return
     */
    void Addworklist(String perform_id, String work_content, String work_count, String unit, String unit_price, String snumber, String hnumber, String comment);

    /**
     * 提交审批
     * @param perform
     * @return
     */
    Integer FlowPerform(Perform perform);

    /**
     * 查询完工结算列表
     * @param params
     * @return
     */
    IPage<Map<String, Object>> listPerform(Map<String, String> params);

    /**
     * 查询工程量清单
     * @param perform_id
     * @return
     */
    List<Map<String, Object>> getWorkList(String perform_id);

    /**
     * 获取审批流程
     * @param perform_id
     * @return
     */
    List<Map<String, Object>> getfromaudit(String perform_id);
}
